package com.softtown.modules.dapai.service;


import com.github.pagehelper.PageInfo;
import com.softtown.common.service.BaseService;
import com.softtown.modules.dapai.dto.CompAfterSaleAPPDTO;
import com.softtown.modules.dapai.dto.CompAfterSaleDTO;
import com.softtown.modules.dapai.dto.CompAfterSaleAddDTO;
import com.softtown.modules.dapai.entity.CompAfterSaleAPPEntity;
import com.softtown.modules.dapai.entity.CompAfterSaleEntity;
import com.softtown.modules.dapai.entity.CompServiceOrderAPPEntity;


/**
* @Author: Ding Ya Yong
* @Description: 售后申请单
* @date: 2022/1/2 11:40
* @Param:
* @return:
*/
public interface CompAfterSaleService extends BaseService<CompAfterSaleEntity> {

    PageInfo<CompAfterSaleDTO> getAfterSalePageList(CompAfterSaleDTO compAfterSaleDTO);

    CompAfterSaleAddDTO getAfterSaleById(Long compId, Long id);

    void addAfterSale(CompAfterSaleAddDTO CompAfterSaleAddDTO);

    PageInfo<CompAfterSaleAPPDTO> getAfterSalePageListAPP(CompAfterSaleAPPDTO compAfterSaleAPPDTO);

    CompAfterSaleAPPDTO getAfterSaleByIdAPP(Long compId, Long id);

    void addAfterSaleAPP(CompAfterSaleAPPEntity compAfterSaleAPPEntity);

    void disAfterSaleAPP(CompServiceOrderAPPEntity compServiceOrderAPPEntity);

    void updateAfterSale(CompAfterSaleAddDTO CompAfterSaleAddDTO);

    void deleteAfterSale(CompAfterSaleDTO compAfterSaleDTO);

}
